package com.yltrcc.blog.generate.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName blog_attachment
 */
@TableName(value ="blog_attachment")
public class BlogAttachment implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 图片名称
     */
    private String pictureName;

    /**
     * 图片路径
     */
    private String picturePath;

    /**
     * 略缩图
     */
    private String pictureSmallPath;

    /**
     * 图片类型
     */
    private String pictureType;

    /**
     * 上传时间
     */
    private String pictureCreateDate;

    /**
     * 文件大小
     */
    private String pictureSize;

    /**
     * 后缀
     */
    private String pictureSuffix;

    /**
     * 尺寸
     */
    private String pictureWh;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 图片名称
     */
    public String getPictureName() {
        return pictureName;
    }

    /**
     * 图片名称
     */
    public void setPictureName(String pictureName) {
        this.pictureName = pictureName;
    }

    /**
     * 图片路径
     */
    public String getPicturePath() {
        return picturePath;
    }

    /**
     * 图片路径
     */
    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath;
    }

    /**
     * 略缩图
     */
    public String getPictureSmallPath() {
        return pictureSmallPath;
    }

    /**
     * 略缩图
     */
    public void setPictureSmallPath(String pictureSmallPath) {
        this.pictureSmallPath = pictureSmallPath;
    }

    /**
     * 图片类型
     */
    public String getPictureType() {
        return pictureType;
    }

    /**
     * 图片类型
     */
    public void setPictureType(String pictureType) {
        this.pictureType = pictureType;
    }

    /**
     * 上传时间
     */
    public String getPictureCreateDate() {
        return pictureCreateDate;
    }

    /**
     * 上传时间
     */
    public void setPictureCreateDate(String pictureCreateDate) {
        this.pictureCreateDate = pictureCreateDate;
    }

    /**
     * 文件大小
     */
    public String getPictureSize() {
        return pictureSize;
    }

    /**
     * 文件大小
     */
    public void setPictureSize(String pictureSize) {
        this.pictureSize = pictureSize;
    }

    /**
     * 后缀
     */
    public String getPictureSuffix() {
        return pictureSuffix;
    }

    /**
     * 后缀
     */
    public void setPictureSuffix(String pictureSuffix) {
        this.pictureSuffix = pictureSuffix;
    }

    /**
     * 尺寸
     */
    public String getPictureWh() {
        return pictureWh;
    }

    /**
     * 尺寸
     */
    public void setPictureWh(String pictureWh) {
        this.pictureWh = pictureWh;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        BlogAttachment other = (BlogAttachment) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPictureName() == null ? other.getPictureName() == null : this.getPictureName().equals(other.getPictureName()))
            && (this.getPicturePath() == null ? other.getPicturePath() == null : this.getPicturePath().equals(other.getPicturePath()))
            && (this.getPictureSmallPath() == null ? other.getPictureSmallPath() == null : this.getPictureSmallPath().equals(other.getPictureSmallPath()))
            && (this.getPictureType() == null ? other.getPictureType() == null : this.getPictureType().equals(other.getPictureType()))
            && (this.getPictureCreateDate() == null ? other.getPictureCreateDate() == null : this.getPictureCreateDate().equals(other.getPictureCreateDate()))
            && (this.getPictureSize() == null ? other.getPictureSize() == null : this.getPictureSize().equals(other.getPictureSize()))
            && (this.getPictureSuffix() == null ? other.getPictureSuffix() == null : this.getPictureSuffix().equals(other.getPictureSuffix()))
            && (this.getPictureWh() == null ? other.getPictureWh() == null : this.getPictureWh().equals(other.getPictureWh()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPictureName() == null) ? 0 : getPictureName().hashCode());
        result = prime * result + ((getPicturePath() == null) ? 0 : getPicturePath().hashCode());
        result = prime * result + ((getPictureSmallPath() == null) ? 0 : getPictureSmallPath().hashCode());
        result = prime * result + ((getPictureType() == null) ? 0 : getPictureType().hashCode());
        result = prime * result + ((getPictureCreateDate() == null) ? 0 : getPictureCreateDate().hashCode());
        result = prime * result + ((getPictureSize() == null) ? 0 : getPictureSize().hashCode());
        result = prime * result + ((getPictureSuffix() == null) ? 0 : getPictureSuffix().hashCode());
        result = prime * result + ((getPictureWh() == null) ? 0 : getPictureWh().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", pictureName=").append(pictureName);
        sb.append(", picturePath=").append(picturePath);
        sb.append(", pictureSmallPath=").append(pictureSmallPath);
        sb.append(", pictureType=").append(pictureType);
        sb.append(", pictureCreateDate=").append(pictureCreateDate);
        sb.append(", pictureSize=").append(pictureSize);
        sb.append(", pictureSuffix=").append(pictureSuffix);
        sb.append(", pictureWh=").append(pictureWh);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}